
using UnityEngine;
using UnityEditor;

[CustomEditor(typeof(UGUITweenY))]
public class UGUITweenYEditor : UGUITweenerEditor
{
	public override void OnInspectorGUI ()
	{
		GUILayout.Space(6f);
		UGUIEditorTools.SetLabelWidth(120f);

        UGUITweenY ty = target as UGUITweenY;
		GUI.changed = false;

		float from = EditorGUILayout.FloatField("From", ty.from);
        float to = EditorGUILayout.FloatField("To", ty.to);

		if (GUI.changed)
		{
			UGUIEditorTools.RegisterUndo("Tween Change", ty);
			ty.from = from;
			ty.to = to;
			UGUITools.SetDirty(ty);
		}

		DrawCommonProperties();
	}
}
